package huanzhao.erp.domain.po;

import java.util.Set;

/**
 * 用于记录用户的操作最终可以涉及到的数据范围（包括部门和团队）
 *
 * @author April
 * 2024/10/7 11:33
 * @version 1.0
 */
public record Scope(boolean unable, boolean purchase, boolean warehouse, boolean repair, Set<Long> teamIds) {
    public static Scope disable() {
        return new Scope(true, false, false, false, Set.of());
    }
}
